package alejandro.castro.abstracts;

public abstract class PlaceableComponent extends AsteroidGameComponent {

	public PlaceableComponent(double x, double y) {
		super(x, y);
	}
	
	public double borderLeft(){
		return this.getX();
	}	
	public double borderRight(){
		return this.getX() + this.getWidth();
	}	

	public double borderTop(){
		return this.getY();
	}
	
	public double borderBottom(){
		return this.getY() + this.getHeight();
	}
	
	public double centerX(){
		return this.getX() + (this.getWidth() / 2);
	}
	
	public double centerY(){
		return this.getY() + (this.getHeight() / 2);
	}
	
	public abstract double getWidth();
	
	public abstract double getHeight();

}
